# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=font-alias
pkgver=1.0.5
pkgrel=0
pkgdesc="X.org font alias files"
url="https://xorg.freedesktop.org/"
arch="noarch"
license="custom"
source="https://www.x.org/releases/individual/font/font-alias-$pkgver.tar.xz"
subpackages="$pkgname-doc"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--with-fontrootdir=/usr/share/fonts
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install

	install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

sha512sums="
86bffa6b9ff789eeba715c079965157806ed633d44cd3dbf5e2a4bba2b390a0f48db65edc8e3264acbc2368d78a8d7e05bc2e2e3a86ddbf6b08bfe7f5e862bcc  font-alias-1.0.5.tar.xz
"
